package com.chenxin.dubbo.service.impl;

import com.chenxin.dubbo.entity.User;
import com.chenxin.dubbo.service.UserService;
import org.apache.dubbo.config.annotation.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public List<User> getUser() {
        List<User> retList = new ArrayList<>();

        User user = new User("zhangsan", "123456");

        retList.add(user);
        return retList;
    }
}
